><

Core elements



Objects

The Window object supplies information on a window. It consists of the pertinent document objects.

Bounds
Rectangle
R/W
Window size and position.
Has Closebox
Bool
R/O
True if the window has a close box.
Has Titlebar
Bool
R/O
True if the window has a title bar.
Hide on Deactivate
Bool
R/O
True if the window disappears upon deactivation.
Is Floating
Bool
R/O
True if the window is a floating window.
Is Resizable
Bool
R/O
True if the window has a growbox.
Is Zoomable
Bool
R/O
True if the window has a zoombox.
Index
Long
R/O
Index of windows in the window list (starts at 0).
Title
Text
R/O
The window name.
Visible
Bool
R/O
True if the window is visible.

Methods

Close
Object
Closes the specified object (window or document).
Open
Object
Opens the specified object.
Save
document
Saves a document.
[File
filename]
The name of the file to be saved.
New Document

Opens a new document.
Activate Window
window
Activates a window.


Automating Operations Using AppleScript > Core elements